package com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.employee;

import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.employee.dto.BusinessEmployeeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.hr.employee.employee.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessEmployeeCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/employee/fallback")
public class BusinessEmployeeCloudServiceFallback implements BusinessEmployeeCloudService {

    @Override
    public BusinessEmployeeListCloudDto list(BusinessEmployeeListCloudParam param) {
        return new BusinessEmployeeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessEmployeeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessEmployeeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessEmployeeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }


    @Override
    public ResponseContent dutyConfirm(BusinessEmployeeDutyConfirmCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
